{if $albums}
	{if $showpage}
	<div id="page-nav" class="pin hide" style="display: none;">
		<a id="page-next" data-showpage="$showpage"></a>
	</div>
	{/if}
	{loop $albums $key=>$album}
	<div class="pin hide home-album" id="{$album['album_id']}_album">
		<div class="album-header">
			<a href="{$album['link']}"><strong>{$album['album_title']}</strong></a>
		</div>
		<ul class="image-list cell_{$album['albumtype']} puzzing">
		{loop $album['covers'] $cover}
			{if $cover['image']} 
			<li class="{$cover['class']}">
				<img src="$cover['image']"  onerror="this.src='{baseurl}assets/img/blank.png';"/>
			</li>
			{else}
			<li class="{$cover['class']}"></li>
			{/if}
		{/loop}
			<div class="puzzing-txt clearfix">
				<div class="actions clearfix">
					
					{if $ismy&&$album['user_id']==$cuser['uid']}
						<a class="btn btn-puzz pull-left" href="{url home/albumupdate?aid=$album['album_id']}"><i class="icon-edit icon-white"></i>{lang edit}</a>
						<a class="btn btn-puzz pull-left" href="javascript:void(0);" data-action="removeAlbum" data-params="$album['album_id']"><i class="icon-remove icon-white"></i>{lang delete}</a>
					{else}
				 		<a class="btn btn-puzz pull-left {if $method=='favalbum'}hide{/if}" id="$album['album_id']_addlikebtn" title="{lang tip_like}" data-action="addLikeAlbum" data-params="$album['album_id']" href="javascript:;" hidefocus=""><i class="icon-heart icon-white"></i>{lang tip_like}</a>
						<a class="btn btn-puzz pull-left {if $method!='favalbum'}hide{/if}" {if $method=='favalbum'}data-reload="true"{/if} id="$album['album_id']_removelikebtn" href="javascript:void(0);" data-reload="false" data-action="removeLikeAlbum" data-params="$album['album_id']"><i class="icon-heart icon-white"></i>{lang tip_removelike}</a>
					{/if}
				</div>
				<a href="{$album['link']}">	
					<strong>{echo sysSubStr($album['album_title'], 30,true)}</strong>
					<span class="txt">
					{echo sysSubStr($album['album_desc'], 300,true)}
					</span>
					<em>{date $album['create_time']}</em>
				</a>
			</div>
	    </ul>
		<div class="album-footer">
			<span class="pull-left"><a href="{url home/user?uid=$album['user_id']}" data-user-id="{$album['user_id']}" data-user-profile="1">{$album['nickname']}</a></span>
			<ul class="tools pull-right">
				<li class="comments">
					<a href="javascript:void(0);">{$album['total_share']}</a>
				</li>
				<li class="fav">
					<a href="javascript:void(0);">{$album['total_like']}</a>
				</li>
			</ul>
		</div>
	</div>
	{/loop}
{/if}